home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Resources / Partition Logic 0.61 / partlogic-0.61.iso / system / headers / sys / stat.h < prev    next >
C/C++ Source or Header  |  2006-01-31  |  2KB  |  50 lines

  1. // 
  2. //  Visopsys
  3. //  Copyright (C) 1998-2006 J. Andrew McLaughlin
  4. //  
  5. //  This library is free software; you can redistribute it and/or modify it
  6. //  under the terms of the GNU Lesser General Public License as published by
  7. //  the Free Software Foundation; either version 2.1 of the License, or (at
  8. //  your option) any later version.
  9. //
  10. //  This library is distributed in the hope that it will be useful, but
  11. //  WITHOUT ANY WARRANTY; without even the implied warranty of
  12. //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
  13. //  General Public License for more details.
  14. //
  15. //  You should have received a copy of the GNU Lesser General Public License
  16. //  along with this library; if not, write to the Free Software Foundation,
  17. //  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. //
  19. //  stat.h
  20. //
  21.  
  22. // This file is the Visopsys implementation of the standard <sys/stat.h>
  23. // file found in Unix.
  24.  
  25. #if !defined(_STAT_H)
  26.  
  27. // Contains the time_t definition
  28. #include <time.h>
  29. // Contains the rest of the definitions
  30. #include <sys/types.h>
  31.  
  32. struct stat {
  33.   dev_t      st_dev;      // device
  34.   ino_t      st_ino;      // inode
  35.   mode_t     st_mode;     // protection
  36.   nlink_t    st_nlink;    // number of hard links
  37.   uid_t      st_uid;      // user ID of owner
  38.   gid_t      st_gid;      // group ID of owner
  39.   dev_t      st_rdev;     // device type (if inode device)
  40.   off_t      st_size;     // total size, in bytes
  41.   blksize_t  st_blksize;  // blocksize for filesystem I/O
  42.   blkcnt_t   st_blocks;   // number of blocks allocated
  43.   time_t     st_atime;    // time of last access
  44.   time_t     st_mtime;    // time of last modification
  45.   time_t     st_ctime;    // time of last change
  46. };
  47.  
  48. #define _STAT_H
  49. #endif
  50.